import {QMFetch} from 'qm-ux';
//import fetch from 'isomorphic-fetch'
export default (param = {})=>{
    return QMFetch(param).then((response)=>{
        if(response.err){
            return Promise.reject(response.err);
        }
        return response.data;
    }).catch(err=>{//未发出请求
        return Promise.reject(err);
    })
}